import request from '@/utils/request'

/**
 * 建户申请-更新删除接口
 * @param params
 * @returns {AxiosPromise}
 */
export function applyMessageDelete(data) {
  return request({
    url: '',
    method: 'post',
    data
  })
}

/**
 * 建户申请-审批分页接口
 * @param params
 * @returns {AxiosPromise}
 */
export function applyToPage(data) {
  return request({
    url: '',
    method: 'post',
    data
  })
}

/**
 * 建户申请-审批详情接口
 * @param params
 * @returns {AxiosPromise}
 */
export function applyMessage(params) {
  return request({
    url: '/hnm/hx/api/build/houses/applyMessage',
    method: 'get',
    params
  })
}

/**
 * 建户申请-审批接口
 * @param params
 * @returns {AxiosPromise}
 */
export function apply(data) {
  return request({
    url: '',
    method: 'post',
    data
  })
}

/**
 * 建户申请-审批进度，流程
 * @param data
 * @returns {AxiosPromise}
 */
export function lookApproveNow(params) {
  return request({
    url: '/hnm/hx/api/build/houses/lookApproveNow',
    method: 'get',
    params
  })
}


